//
//  ViewController.m
//  UI02_homework
//
//  Created by 洛洛大人 on 16/6/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "LLLabel.h"
#import "LLTextField.h"
#import "LLButton.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self creatLabel];
    [self creatTextField];
    [self creatButton];
    
}


-(void)creatLabel {
    LLLabel *userLllabel = [[LLLabel alloc]initWithFrame:CGRectMake(50, 100, 100, 50)];
    [self.view addSubview:userLllabel];
    [userLllabel release];
    
    LLLabel *passwordLabel = [[LLLabel alloc]initWithFrame:CGRectMake(50, 150, 100, 50) withText:@"密码"];
    [self.view addSubview:passwordLabel];
    [passwordLabel release];
    
    LLLabel *confirmpasswordLllabel = [[LLLabel alloc]initWithFrame:CGRectMake(50, 200, 100, 50) withText:@"确认密码"];
    [self.view addSubview:confirmpasswordLllabel];
    [confirmpasswordLllabel release];
    
    LLLabel *mobilephoneLabel = [[LLLabel alloc]initWithFrame:CGRectMake(50, 250, 100, 50) withText:@"手机号"];
    [self.view addSubview:mobilephoneLabel];
    [mobilephoneLabel release];
    
    LLLabel *emailLabel = [[LLLabel alloc]initWithFrame:CGRectMake(50, 300, 100, 50) withText:@"邮箱"];
    [self.view addSubview:emailLabel];
    [emailLabel release];
    
}

-(void)creatTextField {
    LLTextField *userName = [[LLTextField alloc]initWithFrame:CGRectMake(150, 100, 200, 40) withPlaceholder:@"请输入用户名"];
    [self.view addSubview:userName];
    [userName release];
    
    LLTextField *passWord = [[LLTextField alloc] initWithFrame:CGRectMake(150, 150, 200, 40) withPlaceholder:@"请输入密码"];
    [self.view addSubview:passWord];
    [passWord release];
    
    LLTextField *passWordAgain = [[LLTextField alloc] initWithFrame:CGRectMake(150, 200, 200, 40) withPlaceholder:@"请再次输入密码"];
    [self.view addSubview:passWordAgain];
    [passWordAgain release];

    LLTextField *phoneNumber = [[LLTextField alloc]initWithFrame:CGRectMake(150, 250, 200, 40) withPlaceholder:@"请输入手机号"];
    [self.view addSubview:phoneNumber];
    [phoneNumber release];
    
    LLTextField *email = [[LLTextField alloc]initWithFrame:CGRectMake(150, 300, 200, 40) withPlaceholder:@"请输入邮箱"];
    [self.view addSubview:email];
    [email release];
    
    
    
}


-(void)creatButton {
    LLButton *Button1 = [LLButton buttonWithframe:CGRectMake(100, 400, 50, 40) text:@"注册"];
    [self.view addSubview:Button1];
   
    

    LLButton *button2 = [LLButton buttonWithframe:CGRectMake(250, 400, 50, 40) text:@"取消"];
    [self.view addSubview:button2];
    

 
}
















- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
